<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item" v-for="item of list" :key="item.id">
        <div class="img-wrap">
          <img :src="item.imgUrl" alt="">
        </div>
        <div class="item-info">
          <p class="tit">{{ item.title }}</p>
          <p class="desc">{{ item.desc }}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  },
  data () {
    return {}
  }
}
</script>

<style lang="stylus" scoped>
.title
  height: 30px
  background: #eee
  margin-top: 5px
.item
  margin-bottom: 10px
  list-style: none
  .img-wrap
    img
      width: 100%
</style>
